package com.ilxqx.framework.app.controller;

import com.ilxqx.framework.util.ResultUtils;
import com.ilxqx.framework.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author venus
 */
@RestController
public class DemoController {


    @GetMapping("/hello")
    public Object world(HttpSession session) {
        return "hello framework";
    }

    @GetMapping("/json")
    public ResultVO world() {
        return ResultUtils.success("很成功");
    }


}
